package vip.web3.api.form.user;

import lombok.Data;
import vip.web3.common.dto.BaseForm;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
public class OrderForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "产品号不能空")
    private Integer productId;

    @NotNull(message = "付款类型不能空")
    @Min(value = 1, message = "付款类型只能是1和2")
    @Max(value = 2, message = "付款类型只能是1和2")
    private Integer payType;
}
